package website.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import website.domain.ResModel;
import website.domain.User;

import java.util.List;

public interface UserService extends IService<User> {
    ResModel register(User user);

    ResModel login(User user);

    ResModel getCode(User user);

    ResModel updateUser(User user);

    ResModel upload(MultipartFile file);

    ResModel forget(User user);

    ResModel<User> getMyInfo();

    ResModel<User> getUserInfo(Integer uid);

    ResModel<IPage<User>> getByPage(Integer current, Integer size, User user);

    ResModel delUser(Integer uid);

    ResModel<Integer> getUserCount();

    ResModel<List<User>> getUserRank();
}
